package com.lebang.feign.bus;

import com.lebang.feign.bus.fallback.CencesCityApiCountFallback;
import com.lebang.model.RequestUserInfo;
import com.lebangweb.response.JsonData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author ljx
 */
@FeignClient(name = "wangzhuan-bus", contextId = "wangzhuan-cences-citycount", fallback = CencesCityApiCountFallback.class)
public interface CencesCityApiCountFeign {

    @PostMapping("/cences/apicount/city/list")
    JsonData getList(@RequestBody RequestUserInfo userInfo,
                     @RequestParam("page") Integer page,
                     @RequestParam("limit")Integer limit,
                     @RequestParam("appStore")String appStore,
                     @RequestParam("time")Integer time);
}
